home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d21
/
dvglue.arc
/
TVWREPAT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-01-09
|
1KB
|
32 lines
/*=======================================================*/
/* TVWREPAT.C */
/* */
/* (c) Copyright 1988 Ralf Brown All Rights Reserved */
/* May be freely copied for noncommercial use, so long */
/* as this copyright notice remains intact, and any */
/* changes are marked in the comment blocks preceding */
/* functions. */
/*=======================================================*/
#include "tvapi.h"
#include "tvstream.h"
/*=======================================================*/
/* TVwin_repattr repeat attribute n times */
/* Ralf Brown 4/3/88 */
/*=======================================================*/
void pascal TVwin_repattr(OBJECT win,int attr,int count)
{
static BYTE stream[] = { S_WINDOW(3), 0, 0, 0 } ;
if (count >= 0x800)
count = 0 ;
stream[4] = 0x90 | ((count >> 8) & 7) ;
stream[5] = count & 0xFF ;
stream[6] = attr ;
TVwin_stream(win,stream) ;
}
/* End of TVWREPAT.C */